<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>评论</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="../css/base.css">
		<link rel="stylesheet" type="text/css" href="../css/common.css">
		<link rel="stylesheet" type="text/css" href="../css/font-awesome.css">
		<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/css/swiper.css">
		
	</head>

	<body>
		<div class="container layout fh-bg-white" id="goods-details">
			<div class="row">
				<div class="header">
					<span class="header-left"><</span>
							<h2>评论</h2>
				</div>
				<section class="details_comment">
					<div class="details_comment-title ml10"></div>
					<div class="goods-assess">
						<ul></ul>
					</div>
				</section>
				<script type="text/html" id="details_comment_title_tpl">
					<div class="separator mb15 border-half">
						<p class="mr10 dis-in-b">综合好评</p>
						<%for(var q=1;q<=star_average;q++){%>
							<i class="icon-star"></i>
						<%}%>

								<%for(var w=1;w<=(5-star_average);w++){%>
									<i class="icon-star fa-grey"></i>
								<%}%>
					</div>
					<div class="details_comment_btn">
						<button>全部(<%=all_count%>)</button>
						<button>好评(
							<%=good_count%>)</button>
						<button>中评(
							<%=normal_count%>)</button>
						<button>差评(
							<%=bad_count%>)</button>
						<%if(!hasimage_count){%>
							<button>有图(0)</button>
							<%}else{%>
								<button>有图(
									<%=hasimage_count%>)</button>
								<%}%>
					</div>
				</script>
				<script type="text/html" id="details_comment_tpl">

					<%for(var l=0;l<comments.length;l++){%>
						<li>
							<p>
							 <img src="../../images/wap/header_phone.png" data-original="<%=comments[l].member_avatar%>" class="w30"/>


								<%if(comments[l].is_anonymous=='0'){%>
								<span><%=comments[l].member_nickname||comments[l].member_name%></span>
								<%}else{%>
								<span><%=comments[l].member_name.substr(0,1)%>***<%=comments[l].member_name.substr(-1)%></span>
								<%}%>
                                <span class="float-right"><%=comments[l].date%></span>
							</p>
							<p>
								<span class="multi-row f12"><%=comments[l].content%></span>
							</p>

							<ul class="goods_comments clearfix">
								<%if(comments[l].images){%>
									<%for(var r=0;r<comments[l].images.split(',').length;r++){%>
										<li><a href="<%=comments[l].images.split(',')[r]%>" data-lightbox="example-set-commtion<%=l%>"><img src="../../images/wap/pinpaiguan.jpg" data-original="<%=comments[l].images.split(',')[r]%>" alt="" /></a></li>
										<%}%>
											<%}%>
							</ul>
							<%if(comments[l].seller_explain){%>
							  <p class="bg-body pl5 pt5 pr mt10 f12"><i class="arrow-up pa"></i>[商家回复]<%=comments[l].seller_explain%></p>
							<%}%>

                             <%if(comments[l].append_evaluate){%>
										<p class="focus-font" style="font-size:10px;">收货后<span><%if(comments[l].append_evaluate[0].evaluate_days==1){%>当<%}else{%><%=comments[l].append_evaluate[0].evaluate_days-1%><%}%></span>天追加</p>
										<p class="f12">
										<%=comments[l].append_evaluate[0].content%>
									    </p>
									    <ul class="goods_comments clearfix">
										<%if(comments[l].append_evaluate[0].images){%>
											<%for(var i=0;i<comments[l].append_evaluate[0].images.split(',').length;i++){%>
												<li><a href="<%=comments[l].append_evaluate[0].images.split(',')[i]%>" data-lightbox="example-set-com<%=l%>"><img src="../../images/wap/pinpaiguan.jpg" data-original="<%=comments[l].append_evaluate[0].images.split(',')[i]%>" alt="" /></a></li>

											<%}%>
										<%}%>
									</ul>
									<%if(comments[l].append_evaluate[0].seller_explain){%>
									  <p class="bg-body pl5 pt5 pr mt10 f12"><i class="arrow-up pa"></i>[商家回复]<%=comments[l].append_evaluate[0].seller_explain%></p>
									<%}%>
									<%}%>
						</li>
						<%}%>

				</script>

			</div>
		</div>
			<script type="text/javascript" src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
			<script type="text/javascript" src="../js/rem.js"></script>
			<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/js/swiper.js"></script>
			<script type="text/javascript" src="../js/html/commen.js"></script>
	</body>

</html>
